﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Sparkle.Demo.Model;
using Sparkle.Hosting;

namespace Sparkle.SL.Demo.UI
{
    public partial class Shell : UserControl
    {
        public Shell()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);
        }

        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            Employee emp = new Employee() { FName = "hasmukh", Id = 11, LName = "patel" };
            //hsl.DataContext = emp; ;
            HostingPanel.DefaultHostingPanel = MainHostingPanel;
            HostingPanel.DefaultHostingPanel.LinkPanels.Add(this.QuickLinkMenu);
            HostingPanel.DefaultHostingPanel.LinkPanels.Add(this.ReportLinkMenu);

            this.QuickLinkMenu.OnLinkClick += new LinkHandler(QuickLinkMenu_OnLinkClick);
            this.ReportLinkMenu.OnLinkClick += new LinkHandler(ReportLinkMenu_OnLinkClick);

            PersonControl personControl = new PersonControl() { VerticalAlignment = VerticalAlignment.Stretch, HorizontalAlignment = HorizontalAlignment.Stretch };

            HostingPanel.HostControl(personControl);
        }

        void ReportLinkMenu_OnLinkClick(object sender, object entity)
        {
            ;
        }

        void QuickLinkMenu_OnLinkClick(object sender, object entity)
        {
            ;
        }
    }
}
